﻿# CMakeList.txt : CMake project for TCP-Forward, include source and define
# project specific logic here.
#

# Add source to this project's executable.
add_executable (TCP-Forward "TCP-Forward.cpp" "TCP-Forward.h")

if (CMAKE_VERSION VERSION_GREATER 3.12)
  set_property(TARGET TCP-Forward PROPERTY CXX_STANDARD 20)
endif()

# TODO: Add tests and install targets if needed.

# 设置 Boost 路径（根据实际安装路径修改）
set(BOOST_ROOT "D:/Programs/boost_1_88_0")
#set(Boost_USE_STATIC_LIBS ON)  # 使用静态库

# 设置Boost的路径
#set(BOOST_ROOT "C:/local/boost_x_xx_x")  # 根据你的安装位置修改
set(BOOST_LIBRARYDIR "${BOOST_ROOT}/lib")  # 根据你的库文件位置修改
find_package(Boost 1.88.0 REQUIRED COMPONENTS system) # 检查Boost版本和组件
  
# 包含目录
include_directories(${BOOST_INCLUDEDIR})

target_link_libraries(TCP-Forward Boost::system)  # 链接Boost库




